package top.haijunit.common.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * redisson配置类
 *
 * @author zhanghaijun
 * @since 2024-07-31
 */
@Data
@ConfigurationProperties(prefix = "redisson")
public class RedissonProperties {

    private Integer idleConnectionTimeout;

    /** 连接超时时间 */
    private Integer connectTimeout = 30;

    /** 超时时间 */
    private Integer timeout = 30;

    /** 重试次数 */
    private Integer retryAttempts = 3;

    /** 重试间隔 */
    private Integer retryInterval = 1500;

    /** 密码 */
    private String password;

    /** 地址 */
    private String address;

    /** redis数据库 */
    private Integer database = 0;

    /** 连接池大小 */
    private Integer connectionPoolSize = 64;

    /** 连接池最小空闲数量 */
    private Integer connectionMinimumIdleSize = 10;

    /** dns监控间隔 */
    private Integer dnsMonitoringInterval = 5000;
}
